home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ham Radio 2000
/
Ham Radio 2000.iso
/
ham2000
/
packet
/
p_tapr
/
tnchst
/
blptable.c
< prev
next >
Wrap
Text File
|
1991-01-01
|
2KB
|
60 lines
/****** states and tables for blp.c (c) 1990 Howard Goldstein ****/
/* supervisory */
struct state_entry cdecl blps_table[NSSTATES][NSEVENTS] = {
/*bsidle*/
/* was "ring_in,BSLCSETUP, 0,0, 0,0, 0,0, send_cclrd,0, 0,0, " */
/* - no longer matters cuz ring_in has to set up new state */
ring_in,0, 0,0, 0,0, 0,0, send_cclrd,0, 0,0,
0,BSRCSETUP, 0,0, 0,0, 0,0, 0,0 ,
/*bslcsetup*/
0,0, 0,0, 0,0, 0,0, clr_reply,BSIDLE, 0,0,
0,0, stopblp,BSCLEARWT, retrycc,BSLSETWT, retryfail,BSCLEARWT, 0,0,
/*bsrcsetup*//* collission here */
collide,BSCLEARWT, 0,BSRSETWT, answered,BSDATA, 0,0, clr_reply,BSIDLE, 0,0,
0,0, stopblp,BSCLEARWT, 0,0, retryfail,BSCLEARWT, retrycs,0,
/*bslsetwt*/
/*send_ca,0, 0,0, 0,0, caller_rdy,BSDATA, clr_reply,BSIDLE, 0,0,*/
/*send_ca,0, 0,0, 0,0, 0,0, stopblp,BSIDLE, 0,0,*/
0,0, 0,0, 0,0, 0,0, stopblp,BSIDLE, 0,0,
0,0, stopblp,BSCLEARWT, 0,0, retryfail,BSCLEARWT, caller_rdy,BSDATA,
/*bsrsetwt*/
0,0, 0,0, answered,BSDATA, 0,0, stopblp,BSIDLE, 0,0,
0,0, stopblp,BSCLEARWT, 0,0, retryfail,BSCLEARWT, 0,0,
/*bsclearwt*/
0,0, 0,0, 0,0, 0,0, clr_reply,BSIDLE, 0,BSIDLE,
0,0, 0,0, 0,0, 0,BSIDLE, retrycclr,BSIDLE,
/*bsdata*/
/*0,0, 0,0, send_cca,0, 0,0, clr_reply,BSIDLE, 0,0, */
0,0, 0,0, 0,0, 0,0, clr_reply,BSIDLE, 0,0,
0,0, stopblp,BSCLEARWT, 0,0, retryfail,BSCLEARWT, 0,0 };
/* data events */
struct state_entry cdecl blpd_table[NDSTATES][NDEVENTS] = {
/*bdidle*/
0,BDWAIT, 0,0, 0,0, send_dbusy,BDBSY, dataproc,0, ackproc,0, 0,0,
send_cstrep,0,
/*bdwait*/
0,0, 0,BDIDLE, senddata,0, send_dbusy,BDBSYWT, dataproc,0, ackproc,0, 0,0,
send_cstrep,0,
/*bdbsy*/
0,BDBSYWT, 0,0, 0,0, 0,0, dataproc,0, ackproc,0, send_cstrep,BDIDLE,
send_cstrep,0,
/*bdbsywt*/
0,0, 0,BDBSY, senddata,0, 0,0, dataproc,0, ackproc,0, send_cstrep,BDWAIT,
send_cstrep,0 };